﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Design;

namespace ProgNetComponentsDx.Shortcut.Design
{
    public class ShortcutCollectionEditor : CollectionEditor
    {
        public ShortcutCollectionEditor()
            : base(typeof(ShortcutCollection))
        {

        }
        protected override CollectionEditor.CollectionForm CreateCollectionForm()
        {
            CollectionEditor.CollectionForm f = base.CreateCollectionForm();
            f.FormClosed += new System.Windows.Forms.FormClosedEventHandler(f_FormClosed);
            return f;
        }

        void f_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            if (ShortcutGroupCollectionEditorForm.Instance != null)
                ShortcutGroupCollectionEditorForm.Instance.RefreshSelectedNode(true);
        }
    }
}
